<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Исходный файл aootemplate.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li class="current"><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
<h1>aootemplate.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">** $Id: aootemplate.h,v 1.10 2007/12/01 08:58:35 app Exp $</span>
<a name="l00003"></a>00003 <span class="comment">**</span>
<a name="l00004"></a>00004 <span class="comment">** Report metadata object header file of </span>
<a name="l00005"></a>00005 <span class="comment">** Ananas application library</span>
<a name="l00006"></a>00006 <span class="comment">**</span>
<a name="l00007"></a>00007 <span class="comment">** Created : 20050202</span>
<a name="l00008"></a>00008 <span class="comment">**</span>
<a name="l00009"></a>00009 <span class="comment">** Copyright (C) 2003-2005 Grigory Panov &lt;gr1313 at mail.ru&gt;, Yoshkar-Ola.</span>
<a name="l00010"></a>00010 <span class="comment">**</span>
<a name="l00011"></a>00011 <span class="comment">** This file is part of the Designer application of the Ananas </span>
<a name="l00012"></a>00012 <span class="comment">** automation accounting system.</span>
<a name="l00013"></a>00013 <span class="comment">**</span>
<a name="l00014"></a>00014 <span class="comment">** This file may be distributed and/or modified under the terms of the</span>
<a name="l00015"></a>00015 <span class="comment">** GNU General Public License version 2 as published by the Free Software</span>
<a name="l00016"></a>00016 <span class="comment">** Foundation and appearing in the file LICENSE.GPL included in the</span>
<a name="l00017"></a>00017 <span class="comment">** packaging of this file.</span>
<a name="l00018"></a>00018 <span class="comment">**</span>
<a name="l00019"></a>00019 <span class="comment">** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE</span>
<a name="l00020"></a>00020 <span class="comment">** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.</span>
<a name="l00021"></a>00021 <span class="comment">**</span>
<a name="l00022"></a>00022 <span class="comment">** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru</span>
<a name="l00023"></a>00023 <span class="comment">** See http://www.leaderit.ru/gpl/ for GPL licensing information.</span>
<a name="l00024"></a>00024 <span class="comment">**</span>
<a name="l00025"></a>00025 <span class="comment">** Contact org@leaderit.ru if any conditions of this licensing are</span>
<a name="l00026"></a>00026 <span class="comment">** not clear to you.</span>
<a name="l00027"></a>00027 <span class="comment">**</span>
<a name="l00028"></a>00028 <span class="comment">**********************************************************************/</span>
<a name="l00029"></a>00029 <span class="preprocessor">#ifndef AOOTEMPLATE_H</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define AOOTEMPLATE_H</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;qstring.h&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;qptrlist.h&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;qvaluestack.h&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;qdom.h&gt;</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="preprocessor">#define open_token "&lt;:"</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define close_token ":&gt;"</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define open_token_section "\\[:"</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define close_token_section ":\\]"</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define PARAM "param"</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043 <span class="preprocessor">#include "ananasglobal.h"</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include "itemplate.h"</span>
<a name="l00045"></a>00045 
<a name="l00080"></a><a class="code" href="classaOOTemplate.html">00080</a> <span class="keyword">class </span>ANANAS_EXPORT <a class="code" href="classaOOTemplate.html" title="Класс определяет интерфейс для работы с шаблонами...">aOOTemplate</a> : <span class="keyword">public</span> <a class="code" href="classiTemplate.html" title="Интерфейс для работы с отчетами. Наследует QObject...">iTemplate</a>
<a name="l00081"></a>00081 {
<a name="l00082"></a>00082 <span class="keyword">public</span>:
<a name="l00083"></a>00083         <a class="code" href="classaOOTemplate.html" title="Класс определяет интерфейс для работы с шаблонами...">aOOTemplate</a>();
<a name="l00084"></a>00084         <span class="keyword">virtual</span> ~<a class="code" href="classaOOTemplate.html" title="Класс определяет интерфейс для работы с шаблонами...">aOOTemplate</a>();
<a name="l00085"></a>00085         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classiTemplate.html#8a8de851d0401d417b0c8e8f57f54a07">open</a>( <span class="keyword">const</span> QString &amp;fname );
<a name="l00086"></a>00086         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#6b6c46451a1b933b668683cb2b680299">close</a>();
<a name="l00087"></a>00087         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#b2ccc73310de9e1a7a1442360a0d4042">clear</a>();
<a name="l00088"></a>00088         <span class="keyword">virtual</span> QString <a class="code" href="classiTemplate.html#afcc466ddc7bb2a5178312051e32dfc5">getValue</a>( <span class="keyword">const</span> QString &amp;name );
<a name="l00089"></a>00089         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#6414ef83e6d4bb5a9a9b03e9db21e290">setValue</a>( <span class="keyword">const</span> QString &amp;name, <span class="keyword">const</span> QString &amp;value );
<a name="l00090"></a>00090         <span class="keyword">virtual</span> QString <a class="code" href="classiTemplate.html#c7d5273e1f4637384e648b4c95b08bae">exec</a>( <span class="keyword">const</span> QString &amp;sname );
<a name="l00091"></a>00091         <span class="keyword">virtual</span> QString <a class="code" href="classiTemplate.html#b50ddabfbad0a49c5d6daef90cd46ab3">result</a>();
<a name="l00092"></a>00092         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classiTemplate.html#e0ec438061135dcebccd23fc6db78297" title="Сохраняет документ в файл с заданным именем...">save</a>( <span class="keyword">const</span> QString &amp; fname );
<a name="l00093"></a>00093         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#9ab28504cddca046af153f7b11b16143">setDir</a>( <span class="keyword">const</span> QString &amp;dirName );
<a name="l00094"></a>00094         <span class="keyword">virtual</span> QString <a class="code" href="classiTemplate.html#9b05b82bad9eb38263bd0f6d74e9b7a0">getDir</a>();
<a name="l00095"></a>00095         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#97bc4096b4e0ac4a56d5420225f19fd8">cleanUpTags</a>();
<a name="l00096"></a>00096         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> lineFeedRemove( <span class="keyword">const</span> QString &amp;filename ); 
<a name="l00097"></a>00097 <span class="keyword">protected</span>:
<a name="l00106"></a><a class="code" href="classaOOTemplate.html#6a61cc93691d879fb4aa715bdc7d43a4">00106</a>         QString copyName;
<a name="l00107"></a>00107         <span class="keyword">protected</span>:
<a name="l00116"></a><a class="code" href="classaOOTemplate.html#6752699ae004712a010a2fb23d122995">00116</a>         QString templateDir;
<a name="l00117"></a>00117 
<a name="l00118"></a>00118         QMap&lt;QString,QString&gt; values;
<a name="l00119"></a>00119         
<a name="l00120"></a>00120         <span class="keywordtype">void</span> searchTags(QDomNode node, <span class="keyword">const</span> QString &amp;sname );
<a name="l00121"></a>00121         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getNodeTags(QDomNode node, <span class="keyword">const</span> QString &amp;tagname, <span class="keywordtype">bool</span> params );
<a name="l00122"></a>00122         <span class="keywordtype">void</span> insertRowValues(QDomNode node);
<a name="l00123"></a>00123         <span class="keyword">virtual</span> <span class="keywordtype">void</span> insertTagsValues(QDomNode node, <span class="keyword">const</span> QString &amp;tagName);
<a name="l00124"></a>00124         <span class="keywordtype">void</span> clearTags(QDomNode node, <span class="keywordtype">bool</span> section );
<a name="l00125"></a>00125         <span class="keywordtype">void</span> clearRow(QDomNode node);
<a name="l00134"></a><a class="code" href="classaOOTemplate.html#b4893d6a2f587c9e1f5d8aa595d76df6">00134</a>         QDomDocument docTpl;
<a name="l00135"></a>00135         
<a name="l00144"></a><a class="code" href="classaOOTemplate.html#a8e53a98c7b34e86dcbb477137ae07a7">00144</a>         QDomDocument docStyle;
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146 <span class="preprocessor">#endif // AOOTEMPLATE_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:14 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
